<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script>
        // var a = '{"name":"jack","age":20}';
        // var b =JSON.parse(a);

        // alert(b.name);
        
        // document.write(b.name)

        // var obj = JSON.parse('{ "name":"runoob", "alexa":10000, "site":"www.runoob.com" }');
        // document.write(obj.name);



        var obj1 = { "name":"runoob", "alexa":10000, "site":"www.runoob.com"};
        document.write(JSON.stringify(obj1.name));
    </script>
</head>
<body>
    
</body>
</html>